package fms.msgupcenter.protocols.uplinkack;

import fms.msgupcenter.protocols.AcarsProtocol;

import javax.xml.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午1:45
 * To change this template use File | Settings | File Templates.
 */

/**
 *  上行回复报文通信协议（包括上行自由文）
 */
@XmlRootElement(name="acars")
public class UplinkAckProtocol extends AcarsProtocol {
    private String version;
    @XmlAttribute(name="v")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @XmlElement(name="body")
    public UplinkAckProtocolBody body;

    public UplinkAckProtocol(){
        super();
        version = "2.0";
        UplinkAck uplinkAck  = new UplinkAck();
        uplinkAck.setHead(new UplinkAckHead());
        uplinkAck.setMsg("i am uplinkack !");
        body = new UplinkAckProtocolBody();
        body.setUplinkAck(uplinkAck);

    }
}
